//热词
import http from "@/utils/http";
import {EnumAlias} from "@/utils/common";
//创建
export function hotwordinfoCreate(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/hotwordinfo/create`,
    method: "post",
    data
  });
}
//修改
export function hotwordinfoUpdate(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/hotwordinfo/update`,
    method: "post",
    data
  });
}
//删除
export function hotwordinfoDelete(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/hotwordinfo/delete`,
    method: "post",
    data
  });
}
//详情
export function hotwordinfoDetail(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/hotwordinfo/detail`,
    method: "get",
    params
  });
}
//分页
export function hotwordinfoPage(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/hotwordinfo/page`,
    method: "get",
    params
  });
}
//list
export function hotwordinfoList(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/hotwordinfo/list`,
    method: "get",
    params
  });
}
//修改状态
export function hotwordinfoChangeStatus(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/hotwordinfo/changeStatus`,
    method: "post",
    data
  });
}
